package com.zh.ssmshirofreemarker.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.zh.ssmshirofreemarker.entity.JsTree;
import com.zh.ssmshirofreemarker.entity.Permission;
import com.baomidou.mybatisplus.service.IService;

import javax.websocket.EncodeException;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface IPermissionService extends IService<Permission> {


    public List<Map<String,Object>> getAllMenu();

    public List<JsTree> getAllMenuForJson();

    public Page<Permission> getPermissionPage(Page<Permission> page,Permission permission);

    public int addPermission(Permission permission);

    public boolean doAdd(Permission permission);

    public boolean doUpdate(Permission permission);

    public boolean deletePermisisonByIds(Collection collection) throws IOException, EncodeException;

}
